import Layout from '@/views/layout/Layout'

const testingRouter = {
  path: '/testing',
  component: Layout,
  name: 'Testing',
  meta: {
    title: '题库管理',
    icon: 'example'
  },
  children: [
    {
      path: 'testing',
      name: 'Testing',
      component: () =>
        import('@/views/testing/testing'),
      meta: {
        title: '题库管理'
      }
    },
    {
      path: 'questions',
      name: 'Questions',
      component: () =>
        import('@/views/testing/questions'),
      meta: {
        title: '试题管理'
      },
      hidden: true
    },
    {
      path: 'addtestpaper',
      name: 'Addtestpaper',
      component: () =>
        import('@/views/testing/testpaper/addtestpaper'),
      meta: {
        title: '添加试卷'
      },
      hidden: true
    },
    {
      path: 'singlechoice',
      name: 'Singlechoice',
      component: () =>
        import('@/views/testing/components/questiontype/singlechoice'),
      meta: {
        title: '单选题'
      },
      hidden: true
    },
    {
      path: 'muchchoiceit',
      name: 'Muchchoiceit',
      component: () =>
        import('@/views/testing/components/questiontype/muchchoiceit'),
      meta: {
        title: '多选题'
      },
      hidden: true
    },
    {
      path: 'judge',
      name: 'Judge',
      component: () =>
        import('@/views/testing/components/questiontype/judge'),
      meta: {
        title: '判断题'
      },
      hidden: true
    },
    {
      path: 'shortanswer',
      name: 'Shortanswer',
      component: () =>
        import('@/views/testing/components/questiontype/shortanswer'),
      meta: {
        title: '简答题'
      },
      hidden: true
    },
    {
      path: 'cloze',
      name: 'Cloze',
      component: () =>
        import('@/views/testing/components/questiontype/cloze'),
      meta: {
        title: '填空题'
      },
      hidden: true
    },
    {
      path: 'material',
      name: 'Material',
      component: () =>
        import('@/views/testing/components/questiontype/material'),
      meta: {
        title: '材料题'
      },
      hidden: true
    },
  ]
}
export default testingRouter
